package com.caregiver.watch.business.care.enums;

import lombok.Getter;

/**
 * @program: caregiver-watch
 * @author: 疆戟
 * @create: 2025-10-06 09:13
 */
@Getter
public enum FenceRemindTypeEnum {

    /**
     * 1. 双向提醒
     * 2. 入区提醒
     * 3. 出区提醒
     */
    DUAL_WAY(1, "双向提醒"),
    ENTER_AREA(2, "入区提醒"),
    EXIT_AREA(3, "出区提醒");

    private final Integer code;
    private final String desc;

    FenceRemindTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    public static String pares(Integer code) {
        for (FenceRemindTypeEnum value : FenceRemindTypeEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return null;
    }
}
